var config = require('../../config');
var mongoose = require('../../framework/mongoose');

var componentSchema = new mongoose.Schema({
    code: String,
    name: String,
    title: String,
    descr: String,
    type: Number,
    template: String,
    ordr: Number,

    status: Number,
    createTime: Date,
    updateTime: Date
}, config.schemaOptions);
var component = mongoose.model('app_component', componentSchema);
componentSchema.virtual('id').get(function() {
    return this._id;
});
exports.Component = component;



